<?php
/*
 * @package WordPress
 * @subpackage ZeroWeight
 * 
 * Created by John Przeslakowski
 * http://blog.przeslakowski.com
 *
 */
?>
<?php
	if (have_posts()) :
		while (have_posts()) :
			the_post();			
			
			$arc_year = get_the_time('Y');
			$arc_month = get_the_time('m');
			$arc_day = get_the_time('d');
			
			?>
			<article>
				<h4><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
				<section>
				
					<p class="zero-front-meta"><time datetime="<?php the_date('Y-m-d'); ?>T<?php the_time('H:i:s'); ?>" pubdate="pubdate"><a href="<?php echo get_day_link($arc_year, $arc_month, $arc_day); ?>" title="View posts published on <?php echo get_the_date(); ?>" class="zero-post-date"><?php echo get_the_date(); ?></a></time><?php if($post->post_type != 'page'): ?> in <span class="zero-post-categories"><?php the_category(', '); ?><?php endif; ?></span></p>
					
					<?php the_excerpt(); ?>					
				</section>
			</article>
			<?php endwhile; ?>
		
		<?php if($wp_query->max_num_pages > 1): ?>
		
			<nav class="row">
				<section class="zero-previous six columns alpha"><?php next_posts_link('&larr; Older posts'); ?>&nbsp;</section>
				<section class="zero-next six columns omega">&nbsp;<?php previous_posts_link('Newer posts &rarr;'); ?></section>
			</nav>
		
	<?php endif; ?>
	
<?php endif; ?>